from flask import Flask, render_template, session, redirect, url_for, request,jsonify

from flask_pymongo import PyMongo

app = Flask(__name__)
mongo = PyMongo(app, uri="mongodb://localhost:27017/pokemon")  # 开启数据库实例
Pokemondetail=mongo.db.pokemondetail

a=Pokemondetail.find({'id':881})
print(a[0]["id"])
